<template>
  <div class="app">
    <Item v-for="item in items" v-bind="item" :key="item.id">
      <template v-slot:default="obj">
        <div>{{ obj.id }}</div>
        <div>{{ obj.title }}</div>
        <div>{{ obj.content }}</div>
        <br />
      </template>
    </Item>
  </div>
</template>

<script>
import Item from "./components/item";
export default {
  name: "App",
  components: {
    Item,
  },
  data() {
    return {
      items: [
        {
          id: 1,
          title: "吃饭",
          content: "麻辣香锅",
        },
        {
          id: 2,
          title: "睡觉",
          content: "别来沾边",
        },
        {
          id: 3,
          title: "打豆豆",
          content: "豆豆：我没有得罪你们任何人！",
        },
      ],
    };
  },
};
</script>

<style></style>
